describe('practice-1-10', function () {

    it("不同进制的数进行数制转换", function () {
        console.info('practice-1-10');
//        var num_detail = {pre_num:'11',pre_num_system:'8',after_num_system:'10'}
//        var res_dec = number_system_conversion(num_detail);
        //{after_num_system:'16',after_num:'A'}
//        expect(res_dec.after_num_system).toBe('10');
//        expect(res_dec.after_num).toBe('9');
//        console.info(res_dec);
        expect(number_system_conversion({pre_num:'15',pre_num_system:'16',after_num_system:'10'}).after_num).toBe('21');
        expect(number_system_conversion({pre_num:'10',pre_num_system:'8',after_num_system:'16'}).after_num).toBe('8');
        expect(number_system_conversion({pre_num:'85',pre_num_system:'10',after_num_system:'8'}).after_num).toBe('125');
        expect(number_system_conversion({pre_num:'20',pre_num_system:'10',after_num_system:'2'}).after_num).toBe('10100');
    });
});